package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.AlbumForm;
import com.springboot.cloud.demos.entity.po.Album;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

@Component
public class AlbumServiceFallback implements AlbumService {

    @Override
    public Result save(AlbumForm albumForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result getAlbum(String momentId) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result get(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result deleteByUrl(AlbumForm albumForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result delete(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

}
